package io.renren.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import io.renren.entity.TApiDeployinfoEntity;
import io.renren.service.TApiDeployinfoService;
import io.renren.utils.PageUtils;
import io.renren.utils.Query;
import io.renren.utils.R;


/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-11-21 14:46:24
 */
@RestController
@RequestMapping("test")
public class TestController {
	@Autowired
	private TApiDeployinfoService tApiDeployinfoService;
	
	/**
	 * 列表
	 */
	@RequestMapping("/test")
	public R test(){
		//查询列表数据
		HashMap<String, String> map = new HashMap<>();
		map.put("1", "1");
		map.put("2", "2");
		map.put("3", "3");
		return R.ok().put("test", 11).put("status", "success").put("data", map);
	}
	@RequestMapping("/error")
	public R error(){
		//查询列表数据
		HashMap<String, String> map = new HashMap<>();
		map.put("1", "1");
		map.put("2", "2");
		map.put("3", "3");
		return R.ok().put("test", 11).put("status", "error").put("data", map);
	}
	
	
	
	
}
